<template>
  <div>
    <router-view style="padding-bottom: 1.5rem"></router-view>
    <div class="foot">
      <router-link to="/" class="foot-child" tag="div">
      <i class="iconfont icon-shanshui"></i>
      <p>首页</p>
      </router-link>
      <router-link to="/strategy" class="foot-child" tag="div">
      <i class="iconfont icon-iconfront-"></i>
      <p>攻略</p>
      </router-link>
      <router-link to="/find" class="foot-child" tag="div">
      <i class="iconfont icon-xingqiu"></i>
      <p>发现</p>
      </router-link>
      <router-link to="/friend" class="foot-child" tag="div">
      <i class="iconfont icon-haoyou"></i>
      <p>鹿友</p>
      </router-link>
      <router-link to="/main" class="foot-child" tag="div">
      <i class="iconfont icon-yingyong1"></i>
      <p>我的</p>
      </router-link>
    </div>
  </div>
</template>

<script>

export default {
  
}
</script>

<style scoped lang="less">
.foot{
  height:1rem;
  position: fixed;
  z-index: 6;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: #fff;
  .foot-child{
   flex: 1;
   text-align: center;
   line-height: 1rem;
  p{
    font-size: 0.18rem;
    position: relative;
    top: -0.6rem;
  }
  }
  .iconfont{
    font-size: 0.42rem;
    color: #333333;
  }
   .router-link-exact-active{
     color:#7ACF9B;
    .iconfont{
      color:#7ACF9B
    }
  }
}

</style>